[NTG-context] Re: last page number for a list

2024-04-03 Thread Alan Bowen
.) \definelistalternative[startendfmpages][renderingsetup=list:startendfmpages] \startsetups[list:startendfmpages] \structurelistuservariable{itemAuthor}\crlf \structurelistuservariable{itemTitle}\hfill% \at[\currentlistentrypagenumber]–\at[\lastpagenumber] \vglue1pc \stopsetups where I

[NTG-context] start/end pages in ToC

2024-03-26 Thread Alan Bowen
, before={\blank[2.2ex, fixed]}, inbetween=\endgraf, ] \define\ToCEntry{% \structurelistuservariable{author}\crlf \structurelistuservariable{title}\hfill% \at[\structurelistuservariable{reference}]–% \at[\structurelistuservariable{authorInitials}endPage] } \definelistalternative[startendpages

[NTG-context] Re: \em issue in MkXL (2024.03.05 11:26)

2024-03-09 Thread Wolfgang Schuster
n when you switch back to the upright style. \enableexperiments[fonts.compact] \definefontfamily[mainface][rm][TeX Gyre Termes] [it={style:regular, features:{default,slanted}}, sl={style:regular, features:{default,slanted}}] \setupbodyfont[mainface] \starttext \tf h\showcurrentfont[]\

[NTG-context] behaviour sy in externalfigure

2024-02-16 Thread Hans van der Meer via ntg-context
sy=1.001 in order to get the original height. Although not to difficult with a jump to Lua code, I would prefer not.yours sincerelydr. Hans van der Meer\starttext\ConTeXt\space version \contextversion\blank\type{\externalfigure[testfile.jpg]} source figure\crlf\externalfigure[testfile.jpg]\crlf\t

[NTG-context] XML processing, unwanted indentation/alignment

2024-02-15 Thread Michael Guravage
1}{surname}\ifxmlattempty{#1}{prefix}{}\else{, \xmlatt{#1}{prefix}}\fi}\blank \xmlflush{#1} \stopframedtext \blank[big] \stopxmlsetups % Enumerate the address information \startxmlsetups xml:list:address \xmlatt{#1}{street} \xmlatt{#1}{housenumber}\crlf \xmlatt{#1}{postcode} \xmlat

[NTG-context] Re: underbrace label across two lines

2023-12-20 Thread Dean Hung
= 'Aditya' The problem I was running into was the labels might have more words than can be contained within the space allotted on one line (i.e., Cultivar Epithet would not fit in the space on the same line, and hence my question on how to force a \crlf between those two words). Best, Dean On Wed

[NTG-context] Re: underbrace label across two lines

2023-12-20 Thread Mikael Sundqvist
t; \underbrace[mindepth=0.5cm]{\tf x+y+z}_{\vrule width 0pt height > 0.5cm\relax\text{firstline secondline}} > > I have tried using \\ and \crlf, but to no avail. > > Any help would be greatly appreciated! > > Dean Hi, Hans will add some annotation mechanism (already on my compute

[NTG-context] underbrace label across two lines

2023-12-19 Thread Dean Hung
ot; should be the top line of the underbrace label, and "secondline" should be on the lower line of the underbrace label, but as it stands, both are printed on the same line. \underbrace[mindepth=0.5cm]{\tf x+y+z}_{\vrule width 0pt height 0.5cm\relax\text{firstline secondline}} I have trie

[NTG-context] Re: \unit{mercury} renders as m (meter) and \unit{millimetermercury} doesn't work as expected

2023-12-05 Thread Wolfgang Schuster
[physics.units] %% inch should render as “in” %% \setupunittext [inch=in] \starttext \unit{mercury}\crlf %% renders: mm · m \unit{12 millimetermercury}\crlf %% renders: mm · m \unit{12 inchmercury}\crlf%% renders: in · m %% why is this necessary to get mercury rendered as Hg

[NTG-context] \unit{mercury} renders as m (meter) and \unit{millimetermercury} doesn't work as expected

2023-12-05 Thread Marco Patzer
[inch=in] \starttext \unit{mercury}\crlf %% renders: mm · m \unit{12 millimetermercury}\crlf %% renders: mm · m \unit{12 inchmercury}\crlf%% renders: in · m %% why is this necessary to get mercury rendered as Hg? \registerunitshortcut [mercury=mercury] \unit{12

[NTG-context] Re: marginwidths

2023-12-03 Thread Wolfgang Schuster
add width=fit, such as in: \setuplayout[width=fit, leftmargin=6cm,rightmargin=10cm] \showframe \starttext \ConTeXt\space\contextversion\blank before the \type{\starttext}:\crlf \type{\setuplayout[leftmargin=6cm,rightmargin=10cm]}\crlf make no difference in displayed frame

[NTG-context] Re: marginwidths

2023-12-03 Thread Pablo Rodriguez via ntg-context
width=fit, leftmargin=6cm,rightmargin=10cm] \showframe \starttext \ConTeXt\space\contextversion\blank before the \type{\starttext}:\crlf \type{\setuplayout[leftmargin=6cm,rightmargin=10cm]}\crlf make no difference in displayed frame \showlayout \stoptext I wonder whether I might be missing

[NTG-context] Re: marginwidths

2023-11-22 Thread Wolfgang Schuster
\starttext setuplayout: leftmargin=40mm, rightmargin=60mm, textwidth=110mm\crlf abc\dotfill xyz\crlf \stoptext Alternative 1: \setuplayout   [backspace=40mm,    width=110mm] \showframe \starttext \page[empty] \stoptext Alternative 2: \setuplayout   [backspace=40mm,    cutspace=60mm,    width

[NTG-context] Re: marginwidths

2023-11-22 Thread Hans van der Meer via ntg-context
\crlfabc\dotfill xyz\crlf\stoptext showlayout.pdf Description: Adobe PDF document On 22 Nov 2023, at 14:46, Marco Patzer wrote:On Wed, 22 Nov 2023 14:17:29 +0100Hans van der Meer via ntg-context wrote:I would like to change the width of the margins on the page.In the MWE here, the pagelayout does

[NTG-context] unwanted blank page

2023-11-19 Thread Hans van der Meer via ntg-context
sincerelydr. Hans van der Meer % test pagenumbering start-stop\setuppapersize[A5][A5]\starttext\setuppagenumbering[state=stop]\ConTeXt\space\contextversion\blankThis is page 1 without pagenumber.\crlf\page\setuppagenumbering[state=start]This should be a page with pagenumber 2.\crlfBut the pagenumber

[NTG-context] Re: \doifemptyelse issue?

2023-11-14 Thread Bruce Horrocks
ng an >> old document. > > because it's not empty (it's a command that you pass) > >> ---start--- >> \setdataset [DS] [a=] >> \setdataset [DS] [a=] >> \starttext >> :\datasetvariable{DS}{1}{a}: \crlf >> :\datasetvariable{DS}{2}{a}: \crlf >>

[NTG-context] Re: \doifemptyelse issue?

2023-11-14 Thread Hans Hagen
t--- \setdataset [DS] [a=] \setdataset [DS] [a=] \starttext :\datasetvariable{DS}{1}{a}: \crlf :\datasetvariable{DS}{2}{a}: \crlf \doifemptyelse{\datasetvariable{DS}{1}{a}}{true}{false} \doifemptyelse{\datasetvariable{DS}{2}{a}}{true}{false} \stoptext ---end--- ConTeXt ver: 2

[NTG-context] \doifemptyelse issue?

2023-11-13 Thread Bruce Horrocks
The following MWE gives "false false" instead of "false true". I'm sure this used to work (18 months or more ago!) as I found it when re-processing an old document. ---start--- \setdataset [DS] [a=] \setdataset [DS] [a=] \starttext :\datasetvariable{DS}{1}{a}: \crlf

[NTG-context] \xmlinclusion?

2023-11-09 Thread Hans van der Meer via ntg-context
I cannot get \xmlinclusion working. Below an MWE with its output. What I am missing here or is \xmlinclusion not ok?\startxmlsetups demo \xmlsetsetup{#1}{ root|test }{demo:*}\stopxmlsetups\xmlregisterdocumentsetup{demo}{demo}\startxmlsetups demo:root \blank{\bf Start test}\crlf \string

[NTG-context] Re: Testing whether an XML attribute exists

2023-10-17 Thread Hans van der Meer via ntg-context
and \xmldoifelseatt would be >> exceedingly helpful. >> >> \startxmlsetups xml:list:family >> {\bf \xmlatt{#1}{surname} \xmldoifnotatt{#1, prefix, ''} {, >> \xmlatt{#1}{prefix}}} \crlf > > > Syntax error there, you need: > > \xmldoifnotatt{#1}{p

[NTG-context] Re: Testing whether an XML attribute exists

2023-10-17 Thread Taco Hoekwater
> example of \xmldoifatt, \xmldoifnotatt, and \xmldoifelseatt would be > exceedingly helpful. > > \startxmlsetups xml:list:family > {\bf \xmlatt{#1}{surname} \xmldoifnotatt{#1, prefix, ''} {, > \xmlatt{#1}{prefix}}} \crlf Syntax error the

[NTG-context] Testing whether an XML attribute exists

2023-10-17 Thread Michael Guravage
mldoifnotatt{#1, prefix, ''} {, \xmlatt{#1}{prefix}}} \crlf \xmlflush{#1} \stopxmlsetups I have attached three files below: an XML address list, the ConTeXt source file and the typeset result. -- With kind regards, M

[NTG-context] Re: Using Farad with \unit messes up feet, µ not recognised as prefix

2023-10-03 Thread Marco Patzer
On Tue, 3 Oct 2023 16:27:22 +0200 Marco Patzer wrote: > What about: > > \unit{10 um} > \unit{10 µm} > > Can I assign µ to mean micro (prefix)? Found it: \registerunit [prefix] [µ=micro] \starttext \unit{10 micro meter} \crlf \unit{10 µm} \stoptext Should this be the d

[NTG-context] Bug? Text following columns at end of page goes into footer not next page

2023-09-30 Thread Bruce Horrocks
Two column text that ends near the foot of a page can push the next line into the footer rather than starting a new page. MWE for ConTeXt ver: 2023.09.26 18:19 LMTX :- \setuppapersize [A4] \showframe \starttext Knuth in knolumns \dorecurse{30}{\crlf} \startcolumns \input knuth \stopcolumns

[NTG-context] Re: ifxmlselfempty

2023-09-04 Thread denis.maier
\xmlregistersetup{xml:mysetups} \startxmlsetups xml:emptynode node=\xmltag{#1}:\crlf ifxmlselfempty-else-fi:\space \ifxmlselfempty{#1} attribute = \xmlatt{#1}{value} \else content = \xmlflush{#1} \fi \crlf ifxmlselfempty-else-fi reversed:\space \ifxmlselfempty{#1} content = \xmlflush{#1} \else

[NTG-context] Re: attribute selection

2023-08-30 Thread Hans van der Meer via ntg-context
uppapersize[A5][A5] > \startxmlsetups demo:attribute > \xmlsetsetup{#1}{root|node}{demo:attribute:*} > \stopxmlsetups > \xmlregisterdocumentsetup{demo}{demo:attribute} > \startxmlsetups demo:attribute:root > Execute \type{\xmlall{#1}{./node}} > \crlf >

[NTG-context] attribute selection

2023-08-30 Thread Hans van der Meer via ntg-context
ppapersize[A5][A5] \startxmlsetups demo:attribute \xmlsetsetup{#1}{root|node}{demo:attribute:*} \stopxmlsetups \xmlregisterdocumentsetup{demo}{demo:attribute} \startxmlsetups demo:attribute:root Execute \type{\xmlall{#1}{./node}} \crlf \xmlall{

Re: [NTG-context] Probably simple: using a variable for \switchtobodyfont size

2023-05-19 Thread Hans van der Meer via ntg-context
\def\relationsFontSize{8pt}\starttextHello World!\crlf\switchtobodyfont[\relationsFontSize]Hello, world!\stoptext Untitled.pdf Description: Adobe PDF document dr. Hans van der MeerOn 19 May 2023, at 11:43, Gerben Wierda via ntg-context wrote:I want to use a variable for a font size so I can set

Re: [NTG-context] extra lines in PDF annotations

2023-03-14 Thread Pablo Rodriguez via ntg-context
] \starttext \section{one\xmlprocessbuffer{main}{text}{}} \section{two\xmlprocessfile{main}{sample-text.xml}{}} \stoptext It requires that the source is saved with CRLF line endings (so that \savebuffer will save that way too), otherwise both \comment will be exactly the same. I hope it

Re: [NTG-context] [ TEXpage empty lines ]

2023-03-09 Thread Pablo Rodriguez via ntg-context
On 3/8/23 20:08, Wolfgang Schuster via ntg-context wrote: > Pablo Rodriguez via ntg-context schrieb am 08.03.2023 um 20:01: >> On 3/8/23 17:37, Hans Hagen via ntg-context wrote: >>> On 3/8/2023 5:29 PM, Pablo Rodriguez via ntg-context wrote: >>> >>>> \

Re: [NTG-context] [ TEXpage empty lines ]

2023-03-08 Thread Wolfgang Schuster via ntg-context
Pablo Rodriguez via ntg-context schrieb am 08.03.2023 um 20:01: On 3/8/23 17:37, Hans Hagen via ntg-context wrote: On 3/8/2023 5:29 PM, Pablo Rodriguez via ntg-context wrote: \null\\ I prefer \crlf because \null is well, can you guess? Good to know, but I thought that \\ was exactly

Re: [NTG-context] [ TEXpage empty lines ]

2023-03-08 Thread Pablo Rodriguez via ntg-context
On 3/8/23 17:37, Hans Hagen via ntg-context wrote: > On 3/8/2023 5:29 PM, Pablo Rodriguez via ntg-context wrote: > >>\null\\ > > I prefer \crlf because \null is well, can you guess? Good to know, but I thought that \\ was exactly \crlf. I would even say that I

Re: [NTG-context] [ TEXpage empty lines ]

2023-03-08 Thread Hans Hagen via ntg-context
On 3/8/2023 5:29 PM, Pablo Rodriguez via ntg-context wrote: \null\\ I prefer \crlf because \null is well, can you guess? Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27

Re: [NTG-context] structureuservariable as list

2023-02-25 Thread Alex Leray via ntg-context
Dear both, thanks for your answers. `doloopovermatch` didn't work for me but this below is achieving what I wanted. Have a good day, Alex %%% \def\dosomething#1{(#1)} \def\dosomethingtwo#1{* #1\crlf} \starttext \startchapter[title={Foo Bar}][ authors={Alice,Bob,Charline

Re: [NTG-context] structureuservariable as list

2023-02-25 Thread Hans Hagen via ntg-context
On 2/24/2023 11:37 PM, Rik Kabel via ntg-context wrote: Hi, is it possible to pass a list in a variable? I'd like to pass a list of authors: \startchapter[title={Foo Bar}][authors={Alice, Bob}] % PSEUDOCODE % for author in \structureuservariable{authors} % do print(author + '\crlf

Re: [NTG-context] structureuservariable as list

2023-02-24 Thread Rik Kabel via ntg-context
Hi, is it possible to pass a list in a variable? I'd like to pass a list of authors: \startchapter[title={Foo Bar}][authors={Alice, Bob}] % PSEUDOCODE % for author in \structureuservariable{authors} % do print(author + '\crlf') % done \stopchapter Search the wiki. Look for "

[NTG-context] structureuservariable as list

2023-02-24 Thread Alex Leray via ntg-context
Hi, is it possible to pass a list in a variable? I'd like to pass a list of authors: \startchapter[title={Foo Bar}][authors={Alice, Bob}] % PSEUDOCODE % for author in \structureuservariable{authors} % do print(author + '\crlf') % done \stopchapter Thanks

Re: [NTG-context] Curriculum example not working anymore (repost)

2023-02-24 Thread Jan-Erik Hägglöf via ntg-context
{{\bf #1}\inmargin{\it #2}\ (#3).\crlf {\bf #4}, #5.\blank[small]}} doesn’t work as expected. My modification \define[5]\EDUITEM{ \inleft{\bf #1} {{\it #2}\ (#3).\crlf {\bf #4}, #5.\blank[small]}} Then it seems to work

Re: [NTG-context] Chapter cover page

2023-02-23 Thread Alex Leray via ntg-context
\startinterview[title={My Interview}][ author={Jane Doe}, year={2022}, month={Decembre}, bio={\input ward} ] \dorecurse{10}{\input ward \crlf} \stopinterview \stoptext On 23 Feb 2023, at 10:21, Alex Leray via ntg-context wrote: Hello, I'm trying to figure out how to design a chapter

Re: [NTG-context] Chapter cover page

2023-02-23 Thread Bruce Horrocks via ntg-context
}, year={2022}, month={Decembre}, bio={\input ward} ] \dorecurse{10}{\input ward \crlf} \stopinterview \stoptext > On 23 Feb 2023, at 10:21, Alex Leray via ntg-context > wrote: > > Hello, > > I'm trying to figure out how to design a chapter page for a cust

[NTG-context] Chapter cover page

2023-02-23 Thread Alex Leray via ntg-context
w][chapter] \setuphead[interview][ page=right, command=\MyChapter, % insidesection={\page}, style={\tfa}, ] \starttext \startinterview[title={My Interview}][ author={Jane Doe}, year={2022}, month={Decembre}, bio={\input ward} ] \dorecurse{10}{\input ward \crlf} \sto

Re: [NTG-context] Problem using \scale

2023-02-10 Thread Hans Hagen via ntg-context
that the long line just fits. I'm using \crlf to break the address into lines and this doesn't play well with the \scale command, see MWE below, where the second frame is just one long line as the \crlf's seem to be ignored. Is there a simple solution that allows \crlf and also scale? \starttext

Re: [NTG-context] Problem using \scale

2023-02-09 Thread Henning Hraban Ramm via ntg-context
that the long line just fits. I'm using \crlf to break the address into lines and this doesn't play well with the \scale command, see MWE below, where the second frame is just one long line as the \crlf's seem to be ignored. Is there a simple solution that allows \crlf and also scale? \starttext

[NTG-context] Problem using \scale

2023-02-09 Thread Bruce Horrocks via ntg-context
I'm printing address labels. Sometimes an address has a long line that is too long to fit on the label with the result that it wraps. Instead of wrapping, I thought it would be nice to try and auto-scale the label and shrink it so that the long line just fits. I'm using \crlf to break

Re: [NTG-context] new hash for buffer (as file)

2022-09-26 Thread Hans Hagen via ntg-context
ars to get new lines in Windows. Or what am I missing here? I'm not too sure what you're asking here, but Notepad was somewhat- recently updated to handle both CRLF and LF line endings: https://devblogs.microsoft.com/commandline/extended-eol-in-notepad/ Hi Max, I realized later that I was doing

Re: [NTG-context] new hash for buffer (as file)

2022-09-26 Thread Pablo Rodriguez via ntg-context
n Windows. Or what am I missing here? > > I'm not too sure what you're asking here, but Notepad was somewhat- > recently updated to handle both CRLF and LF line endings: > >https://devblogs.microsoft.com/commandline/extended-eol-in-notepad/ Hi Max, I realized later that I w

Re: [NTG-context] new hash for buffer (as file)

2022-09-26 Thread Hans Hagen via ntg-context
'm not too sure what you're asking here, but Notepad was somewhat- recently updated to handle both CRLF and LF line endings: https://devblogs.microsoft.com/commandline/extended-eol-in-notepad/ But I do agree that the line ending handling seems a little odd. I find it surprising that th

Re: [NTG-context] new hash for buffer (as file)

2022-09-25 Thread Max Chernoff via ntg-context
g here, but Notepad was somewhat- recently updated to handle both CRLF and LF line endings: https://devblogs.microsoft.com/commandline/extended-eol-in-notepad/ But I do agree that the line ending handling seems a little odd. I find it surprising that the buffers internally use CR line endings since

Re: [NTG-context] new hash for buffer (as file)

2022-09-23 Thread Pablo Rodriguez via ntg-context
0D), string.char(0x0A)) >) >end > […] Hi Max, this works perfectly fine with Linux "str:gsub('\r','\n')", but I can’t make it work in Windows. I always thought that Unix used LF (\n, if I’m not wrong) to mark a new line, and Windows used CRLF (\r\n). How a

Re: [NTG-context] Parallel texts: verse with blanks between stanzas via tabulate

2022-08-27 Thread Denis Maier via ntg-context
I'll try that. But, iirc, these had some other drawbacks I'll > > check > if it works for my use case. > > > > Is there a way to have blanks in the tabulate? > > \startlines[inbetween={\dontleavehmode\crlf}] > ... > > Wolfgang > > __

Re: [NTG-context] Parallel texts: verse with blanks between stanzas via tabulate

2022-08-27 Thread Wolfgang Schuster via ntg-context
Denis Maier via ntg-context schrieb am 27.08.2022 um 09:17: Thanks. I'll try that. But, iirc, these had some other drawbacks I'll check if it works for my use case. Is there a way to have blanks in the tabulate? \startlines[inbetween={\dontleavehmode\crlf}] ... Wolfgang

Re: [NTG-context] Failing \doifemptyelse

2022-06-24 Thread Willi Egger via ntg-context
setvariables >>>[Test] >>>[Number=] >>> >>> >>> \starttext >>>Value of variable Number before test: \getvariable{Test}{Number} \crlf >>> >>> \doifemptyelse{\getvariable{Test}{Number}} >>>{\dor

Re: [NTG-context] Failing \doifemptyelse

2022-06-23 Thread Wolfgang Schuster via ntg-context
Value of variable Number before test: \getvariable{Test}{Number} \crlf   \doifemptyelse{\getvariable{Test}{Number}}     {\dorecurse {5} {TEST}     }     {Nothing defined \par Contents of variable Number: \getvariable{Test}{Number

Re: [NTG-context] Failing \doifemptyelse

2022-06-23 Thread Hans Hagen via ntg-context
test: \getvariable{Test}{Number} \crlf \doifemptyelse{\getvariable{Test}{Number}} {\dorecurse {5} {TEST} } {Nothing defined \par Contents of variable Number: \getvariable{Test

Re: [NTG-context] Failing \doifemptyelse

2022-06-23 Thread Hans Hagen via ntg-context
test: \getvariable{Test}{Number} \crlf \doifemptyelse{\getvariable{Test}{Number}} {\dorecurse {5} {TEST} } {Nothing defined \par Contents of variable Number: \getvariable{Test

[NTG-context] Failing \doifemptyelse

2022-06-23 Thread Willi Egger via ntg-context
Good evening gurus! Why is the minimal example failing? i.e. executing always the else-branch? \setuppapersize[A6][A6] \setvariables [Test] [Number=] \starttext Value of variable Number before test: \getvariable{Test}{Number} \crlf

Re: [NTG-context] XML processing instructions

2022-05-03 Thread Duncan Hothersall via ntg-context
= string.gsub(data, '<%?capdm %*force_line_stop%?>', '') return data end \stopluacode \startsetups xml:directive:injector:newline \crlf \stopsetups Duncan On Mon, 2 May 2022 at 09:24, Duncan Hothersall wrote: > Many thanks Denis. Very useful tip on the injectors and generalised > c

Re: [NTG-context] XML processing instructions

2022-05-02 Thread Duncan Hothersall via ntg-context
> I have used context’s own injectors for this : > > > > > > > > \startsetups xml:directive:injector:addlinetopage > > \adaptlayout[lines=+1] > > \stopsetups > > > > Or, for your line break example : > > > > > > > > \

Re: [NTG-context] XML processing instructions

2022-05-02 Thread Denis Maier via ntg-context
That was too quick, sorry. Hi Duncan, I have used context’s own injectors for this : \startsetups xml:directive:injector:addlinetopage \adaptlayout[lines=+1] \stopsetups Or, for your line break example : \startsetups xml:directive:injector:newline \crlf \stopsetups Also, I have

Re: [NTG-context] XML processing instructions

2022-05-02 Thread Denis Maier via ntg-context
\xmlflush{#1}\endgraf \stopxmlsetups \startluacode function lxml.preprocessor(data,settings) return string.find(data,"") and string.gsub(data,"","") or data end \stopluacode \startxmlsetups xml:demo:capdmlinestop \crlf \xmlflush{#1} \stopxmlsetups \se

Re: [NTG-context] XML processing instructions

2022-05-02 Thread Duncan Hothersall via ntg-context
raf > \stopxmlsetups > > \startluacode > function lxml.preprocessor(data,settings) > return string.find(data,"") >and string.gsub(data," *force_line_stop?>","") >or data > end > \stopluacode > > \startxmlsetups xml:demo

[NTG-context] XML processing instructions

2022-05-02 Thread Duncan Hothersall via ntg-context
string.find(data,"") and string.gsub(data,"","") or data end \stopluacode \startxmlsetups xml:demo:capdmlinestop \crlf \xmlflush{#1} \stopxmlsetups \setupbodyfont[modern] \starttext \xmlprocess

Re: [NTG-context] \thanks inside author in section

2022-01-01 Thread Youssef Cherem via ntg-context
ry file (context --purge) because the > old (non existing) command is otherwise used in the next run which > results then in an error message. > > \setuplist >[section] >[textcommand=\SectionTocEntry, > after=\blank] > > \define[1]\SectionTocEntry >

Re: [NTG-context] \thanks inside author in section

2022-01-01 Thread Wolfgang Schuster via ntg-context
tuservariable{author}} {{\it\structurelistuservariable{author}} --\crlf}% #1% \doifsomething{\rawstructurelistuservariable{subtitle}} {\crlf\structurelistuservariable{subtitle}}} \setuphead [section] [ after=\directsetup{section}, align=center, number=no, style=bold] \startsetups

[NTG-context] \thanks inside author in section

2022-01-01 Thread Youssef Cherem via ntg-context
ction][ textcommand=\SectionTocEntry, after=\blank, ] \define[1]\SectionTocEntry{% \doifnot{\rawstructurelistuservariable{author}}{} {\start \it \structurelistuservariable{author}\stop\space-- \crlf}% #1% title \doifnot{\rawstructurelistuservariable{subtitle}}{} {\crlf\structurelistuservariable{sub

[NTG-context] \thanks inside author in section

2021-12-29 Thread Youssef Cherem via ntg-context
t does this? \setuplist[section][ textcommand=\SectionTocEntry, after=\blank, ] \define[1]\SectionTocEntry{% \doifnot{\rawstructurelistuservariable{author}}{} {\start \it \structurelistuservariable{author}\stop\space-- \crlf}% #1% title \doifnot{\rawstructurelistuservariable{subtitle}}{} {\crlf\st

Re: [NTG-context] rule beneath chapter number

2021-11-11 Thread jbf via ntg-context
number, but neither achieve what I want. \underbar is too close to the number \setupbar[underbar][offset=-0.8] % play around with the number and \crlf\blackrule too far below. So basically my question is: is there a way of adjusting the position of a brief rule beneath the number? \defineframed

Re: [NTG-context] rule beneath chapter number

2021-11-11 Thread Aditya Mahajan via ntg-context
he number > and \crlf\blackrule too far below. So basically > my question is: is there a way of adjusting the position of a brief rule > beneath the number? \defineframed[underbarframed] [ frame=off, rulethickness=1pt,

[NTG-context] rule beneath chapter number

2021-11-11 Thread jbf via ntg-context
The following MWE deliberately shows two ways of getting a short rule beneath a chapter number, but neither achieve what I want. \underbar is too close to the number and \crlf\blackrule too far below. So basically my question is: is there a way of adjusting the position of a brief rule beneath

[NTG-context] Solved: Book setup with LHS-side quotes before chapters/parts, header/footer issues, TOC, etc.

2021-10-26 Thread Gerben Wierda via ntg-context
] \setupcombinedlist [content] [list={part,parttext,chapter,chaptertext}] \starttext \startfrontmatter \completecontent \SectionPrequote{If you think good architecture is expensive, try bad architecture\crlf {\tf Brian Foote and Joseph Yoder}} \startchapter[title={One}] \dorecurse{7}{\input tufte \par \input

Re: [NTG-context] How do I get the first page of the chapter to display the page number in the footer in this setup?

2021-10-25 Thread Bruce Horrocks via ntg-context
\resetsetups[quote:text] \page[right] \blank[force,2*big] \setupfootertexts [] [] [] [] %% \stopsetups Is that what you were after? > > \startsetups chapter:after > \blank[3*big] > \stopsetups > > \definelist[chaptertext] > \setuplist[chaptertext][margin

Re: [NTG-context] Move the page number from header to footer on the current page only?

2021-10-25 Thread Wolfgang Schuster via ntg-context
    \startalignment[flushright,nothyphenated]     \startnarrower[4*left]     \em \getbuffer[chapter:quote]     \stopnarrower     \stopalignment     \page[right] \stopsetups \starttext \startbuffer [chapter:quote] If you think good architecture is expensive, try bad architecture\crlf {\tf Brian Foote

[NTG-context] Move the page number from header to footer on the current page only?

2021-10-25 Thread Gerben Wierda via ntg-context
] \stopnarrower \stopalignment \page[right] \stopsetups \starttext \startbuffer [chapter:quote] If you think good architecture is expensive, try bad architecture\crlf {\tf Brian Foote and Joseph Yoder} \stopbuffer \chapter[h:one]{One} \dorecurse{5}{\input tufte \par \input knuth} \chapter

Re: [NTG-context] How do I get the first page of the chapter to display the page number in the footer in this setup?

2021-10-24 Thread Gerben Wierda via ntg-context
]\ChapterAbstract{\writetolist[chaptertext]{}{\start\itx#1\stop}} \starttext \startbuffer [chapter:quote] If you think good architecture is expensive, try bad architecture\crlf {\tf Brian Foote and Joseph Yoder} \stopbuffer \chapter[h:one]{One} \ChapterAbstract{This is chapter abstract 1.} \dorecurse

Re: [NTG-context] How do I get the first page of the chapter to display the page number in the footer in this setup?

2021-10-24 Thread Gerben Wierda via ntg-context
bleoneargument] > \define[1]\ChapterAbstract{\writetolist[chaptertext]{}{\start\itx#1\stop}} > > \starttext > \startbuffer [chapter:quote] > If you think good architecture is expensive, try bad architecture\crlf > {\tf Brian Foote and Joseph Yoder} > \stopbuffer > >

[NTG-context] How do I get the first page of the chapter to display the page number in the footer in this setup?

2021-10-24 Thread Gerben Wierda via ntg-context
] \stopsetups \definelist[chaptertext] \setuplist[chaptertext][margin=1.3em,pagecommand=\gobbleoneargument] \define[1]\ChapterAbstract{\writetolist[chaptertext]{}{\start\itx#1\stop}} \starttext \startbuffer [chapter:quote] If you think good architecture is expensive, try bad architecture\crlf {\tf Brian

Re: [NTG-context] setuplocalinterlinespace not affecting the whole group?

2021-10-13 Thread Denis Maier via ntg-context
] %\setupinterlinespace[line=25.5bp] \tfb One\crlf Two Three } \stopTEXpage % For some reason \setuplocalinterlinespace[line=25.5bp] seems to affect only the first paragraph in the group, but not the distance between the two paragraphs. Using \setupinterlinespace instead

Re: [NTG-context] setuplocalinterlinespace not affecting the whole group?

2021-10-13 Thread Wolfgang Schuster via ntg-context
{ \setuplocalinterlinespace[line=25.5bp] %\setupinterlinespace[line=25.5bp] \tfb One\crlf Two Three } \stopTEXpage % For some reason \setuplocalinterlinespace[line=25.5bp] seems to affect only the first paragraph in the group, but not the distance between

[NTG-context] setuplocalinterlinespace not affecting the whole group?

2021-10-13 Thread Denis Maier via ntg-context
=25.5bp] \tfb One\crlf Two Three } \stopTEXpage % For some reason \setuplocalinterlinespace[line=25.5bp] seems to affect only the first paragraph in the group, but not the distance between the two paragraphs. Using \setupinterlinespace instead

Re: [NTG-context] metafun: circular arc

2021-10-05 Thread Hans Hagen via ntg-context
xtext("\noexpand\framed[align=middle,frame=off]{Jahr \crlf 20.000 = 0}"), z[10]) ; label.llft(textext("\noexpand\framed[align=middle,frame=off]{Jahr \crlf 2.000}"), z[8]) ; label.lft(textext("\noexpand\framed[align=middle,frame=off]{Jahr \crlf 4.000}"), z[6]) ; label.lft(tex

[NTG-context] metafun: circular arc

2021-10-05 Thread Thomas A. Schmitz via ntg-context
z[23] = S[12] intersection_point S[3] ; S[20] = S[3] cutbefore z[20] cutafter z[23] ; for i = 1 upto 16: draw S[i] withcolor 0.7white ; endfor ; draw z[23] -- z[20] withcolor red ; draw S[20] withcolor blue ; label.bot(textext("\noexpand\framed[align=middle,frame=off]{Jahr \crlf

Re: [NTG-context] [External] special case of hskip...?

2021-09-28 Thread jbf via ntg-context
tg-context wrote: In just one instance I would like the following to work differently: \startchapter[title={Introduction\\Disability and marginalisation},list={Introduction:\crlf Disability and marginalisation}]. That gives me: Introduction: Disability and marginalisation But I would li

Re: [NTG-context] [External] special case of hskip...?

2021-09-28 Thread jbf via ntg-context
? Michael On Sep 28, 2021, at 11:08 PM, jbf via ntg-context wrote: In just one instance I would like the following to work differently: \startchapter[title={Introduction\\Disability and marginalisation},list={Introduction:\crlf Disability and marginalisation}]. That gives me: Introduction:

Re: [NTG-context] [External] special case of hskip...?

2021-09-28 Thread Rogers, Michael K via ntg-context
> marginalisation},list={Introduction:\crlf Disability and marginalisation}]. > > That gives me: > > Introduction: > Disability and marginalisation > > But I would like to have: > > Introduction: > Disability and marginalisation > > Is th

[NTG-context] special case of hskip...?

2021-09-28 Thread jbf via ntg-context
In just one instance I would like the following to work differently: \startchapter[title={Introduction\\Disability and marginalisation},list={Introduction:\crlf Disability and marginalisation}]. That gives me: Introduction: Disability and marginalisation But I would like to have

Re: [NTG-context] footnote not appearing

2021-07-28 Thread jbf via ntg-context
and ... (\wrapuppar{\removeunwantedspaces)}some text and some more text and ... test\wrapuppar{\crlf\ignorepars} test test\wrapuppar{\ignorepars} test test\wrapuppar{\removeunwantedspaces\ignorepars} test These are actually features that are already around and (so far) have proven to work ok. Especially

Re: [NTG-context] footnote not appearing

2021-07-28 Thread Hans Hagen via ntg-context
are too, so here's another (already described elsewhere) trick with hooks, (\wrapuppar{)}some text and some more text and ... (\wrapuppar{\removeunwantedspaces)}some text and some more text and ... test\wrapuppar{\crlf\ignorepars} test test\wrapuppar{\ignorepars} test test\wrapuppar

Re: [NTG-context] whiteline before xmldisplayverbatim

2021-07-05 Thread Hans van der Meer
Found the problem: should not be preceded by \crlf but by \par. dr. Hans van der Meer > On 5 Jul 2021, at 19:21, Hans van der Meer wrote: > > I cannot get rid of the whiteline that \xmldisplayverbatim generates before > its output. Changing to other \xmldisplay macro's di

[NTG-context] whiteline before xmldisplayverbatim

2021-07-05 Thread Hans van der Meer
I cannot get rid of the whiteline that \xmldisplayverbatim generates before its output. Changing to other \xmldisplay macro's did not change this. How to get rid of the whitespace? MWE: \startxmlsetups hvdm:docs:texcode abc\crlf \xmlstripnolines{#1}{.}% <- with or with

[NTG-context] yscale not working

2021-06-05 Thread Hans van der Meer
.\starttextTest \tex{externalfigure} scaling - \ConTeXt\ \contextversion\blank\type{\externalfigure[test][width=0.50\textwidth]}\crlf\externalfigure[test][width=0.50\textwidth]\blank\type{\externalfigure[test][width=0.50\textwidth,yscale=2000]}\crlf\externalfigure[test][width=0.50\textwidth,yscale=2000]\stoptext

Re: [NTG-context] where to break a long header

2021-06-05 Thread Sandra Snan
det: Samstag, 5. Juni 2021 07:59:33 > An: ntg-context@ntg.nl > Betreff: [NTG-context] where to break a long header > > I had an unsually long header and it didn't look great: > > https://ellen.idiomdrottning.org/sateotc1.png > > A crlf fixes it: > >

Re: [NTG-context] where to break a long header

2021-06-05 Thread denis.maier
header and it didn't look great: https://ellen.idiomdrottning.org/sateotc1.png A crlf fixes it: https://ellen.idiomdrottning.org/sateotc2.png But then that shows up in the table of contents so that's not a good solution. What is the best practice for this situation

[NTG-context] where to break a long header

2021-06-05 Thread Sandra Snan
I had an unsually long header and it didn't look great: https://ellen.idiomdrottning.org/sateotc1.png A crlf fixes it: https://ellen.idiomdrottning.org/sateotc2.png But then that shows up in the table of contents so that's not a good solution. What is the best practice for this situation

[NTG-context] new upload

2021-05-31 Thread Hans Hagen
2 \crlf test test 1 \sync{one}{1}test test test 2 \crlf test 1\sync{one}{1}test 2 \crlf test test test test 1 \sync{one}{1}test test 2 } \framed [synchronize=yes,align=normal] {% one one \sync{a}{1}two \sync{a}{2}three \crlf one one

Re: [NTG-context] no leavevmode

2021-05-28 Thread Hans Hagen
that \leavevmode? \startsubsection[title=TEST] \hbox{abc} def\crlf ghi jkl xyz \stopsubsection first of all, context never uses (and used) \leavevmode and that is for a good reason anyway, adding any mode change command automatically will somehow interfere, \starttext \def\MyTitle#1{\blank{\bf#1

[NTG-context] no leavevmode

2021-05-27 Thread Hans van der Meer
\crlf ghi jkl xyz \stopsubsection dr. Hans van der Meer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg

Re: [NTG-context] register for biblical citations

2021-04-16 Thread jbf
explicit: You use a couple of chartacters that will be filtered (crlf and so). Try weird ones, like: sorters.definitions["biblical"] = {     method  = interfaces.variables.before,     replacements = {     { "Gen",  "\\x01\\x01" },     { "Ex",   "

Re: [NTG-context] register for biblical citations

2021-04-16 Thread Hans Hagen
On 4/16/2021 12:22 PM, jbf wrote: There was no mention of the indicator anywhere in what I copied from your example. I did try indicator=no just now in case it should be made explicit: You use a couple of chartacters that will be filtered (crlf and so). Try weird ones, like

[NTG-context] lmtx goodies

2021-04-15 Thread Hans Hagen
erse(a) do if i > 32 and v > 0 then context("%03i %U\\crlf",i,i) end end \stopluacode \blank \startluacode local a = { } local y = string.byte("1") local n = string.byte("0") f

[NTG-context] Multiple Layouts

2021-03-13 Thread Jeroen
] \authorstyle{The Author} \blank[13*big] \titlestyle{Title 1} \blank[5*small] \titlestyle{Title 2} \blank[2*big] \subtitlestyle{Subtitle} \blank[47*big] \publisherstyle{Publisher} \stopmakeup \startmakeup[copyrightpage] Title \crlf Subtitle \blank Geprint in Country. \crlf Document Reference ABC-ABC-001

  1   2   3   4   5   6   7   8   9   10   >